widget: Fix math screwups in clip calculation
authorBenjamin Otte <otte@redhat.com>
Thu, 17 Nov 2016 22:16:14 +0000 (23:16 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 17 Nov 2016 22:16:14 +0000 (23:16 +0100)
commit9a06b0fd5f6e992027f09623c4d72a803b9bfd23
tree8bdabc386ab5318827854d28837242d6ed2a355a
parentc162b87ebd50e82907006c13ae64d7c7828d0fa4
widget: Fix math screwups in clip calculation

We need so subtract the allocation from the clip to get the clip offset,
not the other way around.

This was screwing in particular with marks on GtkScale, because GtkScale
mark clip computation is broken and always returns (0,0) which makes
scales have a waaaaay too large clip.
But that's another bug.
gtk/gtkwidget.c